package com.inlycat.entity;

import java.io.Serializable;

import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.NumberFormat.Style;

/**
 * @author jarvan4dev@163.com
 * @since 2015年8月27日下午3:53:37
 * @category
 **/
//@JsonInclude(Include.NON_NULL)
public class Node implements Serializable {

	private static final long serialVersionUID = 2774718240210884032L;

	private Long id;
	private Long videoId;
	private Long parent;
	private String fileName;
	private String content;
	private Integer count;
	
	private double percent;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getVideoId() {
		return videoId;
	}

	public void setVideoId(Long videoId) {
		this.videoId = videoId;
	}

	public Long getParent() {
		return parent;
	}

	public void setParent(Long parent) {
		this.parent = parent;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	@NumberFormat(style=Style.PERCENT,pattern="#.###")
	public double getPercent() {
		return percent;
	}

	public void setPercent(double percent) {
		this.percent = percent;
	}

	@Override
	public String toString() {
		return "Node [id=" + id + ", videoId=" + videoId + ", parent=" + parent
				+ ", fileName=" + fileName + ", content=" + content
				+ ", count=" + count + "]";
	}

}
